# For more information about using CMake with Android Studio, read the
# documentation: https://d.android.com/studio/projects/add-native-code.html

# Sets the minimum version of CMake required to build the native library.

cmake_minimum_required(VERSION 3.4.1)
include_directories(src/main/cpp/include)
add_library(
             native-crypto
             SHARED
             src/main/cpp/ed-aes.c
             src/main/jni/native-crypto.c)

add_library(
             ssl-crypto
             STATIC
             IMPORTED )

set_target_properties(
                       ssl-crypto
                       PROPERTIES IMPORTED_LOCATION
                       ${CMAKE_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI}/libcrypto.a )

target_link_libraries(
                        native-crypto
                        ssl-crypto
                        log )